﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Technology.aspx.cs" Inherits="Corsat.Web.Administration.Results.Technology" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/JScript.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <style type="text/css">
        .progressBackgroundFilter
        {
            position: fixed;
            top: 0px;
            bottom: 0px;
            left: 0px;
            right: 0px;
            overflow: hidden;
            padding: 0;
            margin-left: auto;
            margin-right: auto;
            background-color: #000;
            filter: alpha(opacity=50);
            opacity: 0.5;
            z-index: 1000;
        }
        
        .processMessage
        {
            margin-left: auto;
            margin-right: auto;
            position: fixed;
            top: 30%;
            left: 43%;
            padding: 10px;
            width: 14%;
            z-index: 1001;
            background-color: #fff;
            border: solid 1px #000;
            text-align: center;
            font-size: large;
            font-style: oblique;
        }
        
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
        
        .modalPopup
        {
            background-color: #ffffdd;
            border-width: 3px;
            border-style: solid;
            border-color: Gray;
            padding: 3px;
            width: 400px;
        }
        
        .modalPopup p
        {
            padding: 5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="formScriptManager" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:UpdateProgress ID="UpdateProgress2" runat="server">
            <ProgressTemplate>
                <div class="progressBackgroundFilter">
                </div>
                <div class="processMessage">
                    جارى التحميل...<br />
                    <br />
                    <img alt="Loading..." src="~/Images/Loading.gif" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <table align="center" width="900px">
            <tr>
                <td>
                    <asp:Panel ID="pnlChooseCourse" runat="server" GroupingText="إختيار كورس" Font-Bold="False"
                        Font-Size="Large" Direction="RightToLeft">
                        <table width="100%" dir="rtl">
                            <tr>
                                <td style="width: 40%">
                                    <asp:Panel runat="server" ID="pnlCourseName" GroupingText="الكورس" Height="100%">
                                        <asp:DropDownList ID="ddlCourseNames" runat="server" Width="100%" OnSelectedIndexChanged="ddlCourseNames_SelectedIndexChanged"
                                            AutoPostBack="true" Style="font-size: large; margin-right: 0px">
                                        </asp:DropDownList>
                                    </asp:Panel>
                                </td>
                                <td style="width: 40%" align="center">
                                    <asp:UpdatePanel ID="upCourseLevels" runat="server">
                                        <ContentTemplate>
                                            <asp:Panel ID="pnlCourseLevels" runat="server" GroupingText="اليوم">
                                                <table align="center">
                                                    <tr>
                                                        <td align="center">
                                                            <asp:Calendar ID="calTestDate" runat="server" BackColor="White" BorderColor="Black"
                                                                Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="250px" NextPrevFormat="ShortMonth"
                                                                Width="330px" BorderStyle="Solid" CellSpacing="1">
                                                                <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" Height="8pt" />
                                                                <DayStyle BackColor="#CCCCCC" />
                                                                <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
                                                                <OtherMonthDayStyle ForeColor="#999999" />
                                                                <SelectedDayStyle BackColor="#333399" ForeColor="White" />
                                                                <TitleStyle BackColor="#333399" Font-Bold="True" Font-Size="12pt" ForeColor="White"
                                                                    BorderStyle="Solid" Height="12pt" />
                                                                <TodayDayStyle BackColor="#999999" ForeColor="White" />
                                                            </asp:Calendar>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="ddlCourseNames" EventName="SelectedIndexChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <hr />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:LinkButton ID="btnLoad" runat="server" Text="تــــحـــمــــيــــل" Font-Size="Large"
                                        Font-Bold="true" OnClick="btnLoad_Click1"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:Panel ID="pnlAccountsInCourse" runat="server" GroupingText="الدارسين" Font-Size="Large">
                                <table align="center">
                                    <tr>
                                        <td align="center">
                                            <a id="showModalPopupClientButton" href="#" onclick="showModalPopupViaClient(event,'programmaticModalPopupBehavior_AlreadyRegistered')">
                                                إضافة</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="grdAccounts" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC"
                                                BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2"
                                                EnableModelValidation="True" ForeColor="Black" HorizontalAlign="Center">
                                                <Columns>
                                                    <asp:BoundField DataField="CorsatId" HeaderText="الرقم الكورساتى">
                                                        <ItemStyle Width="100px" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="ArabicName" HeaderText="الإسم">
                                                        <ItemStyle Width="400px" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="TechnologyCourseResult" HeaderText="الدرجة">
                                                        <ItemStyle Width="100px" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="ItemName" HeaderText="التقدير">
                                                        <ItemStyle Width="100px" />
                                                    </asp:BoundField>
                                                </Columns>
                                                <FooterStyle BackColor="#CCCCCC" />
                                                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                                <RowStyle BackColor="White" />
                                                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <hr />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="center">
                                            <asp:UpdatePanel ID="upnlAlready" runat="server">
                                                <ContentTemplate>
                                                    <asp:Button runat="server" ID="btnHiddenAlreadyRegistered" Style="display: none" />
                                                    <ajaxToolkit:ModalPopupExtender runat="server" ID="programmaticModalPopup_AlreadyRegistered"
                                                        BehaviorID="programmaticModalPopupBehavior_AlreadyRegistered" TargetControlID="btnHiddenAlreadyRegistered"
                                                        PopupControlID="pnlAlreadyRegistered" BackgroundCssClass="modalBackground" DropShadow="True"
                                                        PopupDragHandleControlID="programmaticPopupDragHandle_AlreadyRegistered" RepositionMode="RepositionOnWindowScroll">
                                                    </ajaxToolkit:ModalPopupExtender>
                                                    <asp:Panel ID="pnlAlreadyRegistered" runat="server" CssClass="modalPopup" Style="display: none;">
                                                        <asp:Panel runat="Server" ID="programmaticPopupDragHandle_AlreadyRegistered" Style="cursor: move;
                                                            background-color: #DDDDDD; border: solid 1px Gray; color: Black; text-align: center;
                                                            height: 30px; vertical-align: middle;">
                                                            <a id="A2" href="#" onclick="hideModalPopupViaClient(event,'programmaticModalPopupBehavior_AlreadyRegistered')">
                                                                <img src="../../Images/Action-cancel-icon.png" align="left" alt="إغلاق النافذة" /></a>
                                                            <asp:Label ID="lblModalHeader" runat="server" Style="vertical-align: middle;" Text="الكورسات المتخصصة"
                                                                Font-Size="X-Large" Font-Bold="True"></asp:Label>
                                                        </asp:Panel>
                                                        <table align="center">
                                                            <tr>
                                                                <td>
                                                                    الرقم الكورساتى
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtCorsatId" runat="server" Font-Size="Large" Font-Bold="true" Style="text-align: center;"
                                                                        OnTextChanged="txtCorsatId_TextChanged"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:LinkButton ID="btnLoadAccount" runat="server" Text="تحميل"></asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                    <hr />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" align="center">
                                                                    الإســـم
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                    <asp:HiddenField ID="hfAccountId" runat="server" />
                                                                    <asp:TextBox ID="txtFullName" runat="server" Width="100%" Font-Size="Large" Font-Bold="true"
                                                                        Enabled="false" Style="text-align: center;"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                    <hr />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    الدرجة
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtResult" runat="server" Font-Size="Large" Font-Bold="true" Style="text-align: center;"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <%-- <asp:Label ID="Label1" runat="server" Style="font-size: large" Text="من فضلك ادخل رقمك القومى بشكل كامل و صحيح"></asp:Label>
                                                        <br />
                                                        <asp:TextBox ID="txtAlreadyRegistered_SSN" runat="server" Width="80%" Style="font-size: x-large;
                                                            text-align: center;" onkeypress="return isNumberKey(event) && ValidateTextLength('txtAlreadyRegistered_SSN',14);" />--%>
                                                        <br />
                                                        <asp:LinkButton ID="btnSaveTechResult" runat="server" Text="حفظ" OnClick="btnSaveTechResult_Click" />
                                                    </asp:Panel>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <%--<asp:AsyncPostBackTrigger ControlID="btnLoadAccount" EventName="Click" />--%>
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnLoad" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="ddlCourseNames" EventName="SelectedIndexChanged" />
                            <%--<asp:AsyncPostBackTrigger ControlID="txtCorsatId" EventName="TextChanged" />--%>
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
